﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AdminConfirmReturn.aspx.vb" Inherits="QLThuVien.AdminConfirmReturn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Xác nhận trả</title>
    <link href="../assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/font-awesome.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function showPopupNote(s, e) {
            s.StartEditRow(e.visibleIndex);
        }
        function changeTextGT(s, e) {
            var str = lbl_gioitinh.GetValue();
            if (str == "True") {
                lbl_gioitinh.SetText("Nam");

            } else {
                lbl_gioitinh.SetText("Nữ");

            }
        }
        function HidePopup() {
            var p = window.parent;
            var popup = p.window["popup_trasach"];
            popup.Hide();
        }
        function hidePopup() {
            var p = window.parent;
            var popup = p.window["popup_trasach"];
            popup.Hide();
            p.location.reload();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <h2 style="border-bottom:3px solid gray" class="text-info"> Thông Tin Độc Giả</h2>
    <div>
        <asp:DataList ID="datalist_docgia" runat="server" RepeatDirection="Horizontal" 
            RepeatLayout="Flow">
        <ItemTemplate> 
            <table width="100%">
                <tbody class="col-lg-12">
                    <tr style="padding-bottom:5px;">
                   
                    
                        <td class="col-lg-2">  
                        <div class="form-group">
                            <span class="label label-primary">Tài Khoản:</span>
                             <%# Eval("taikhoan")%>                    
                        </div>
                        <div class="form-group">
                            <span class="label label-primary">Tên:</span>
                             <%# Eval("ten")%>
                        </div>
                        <div class="form-group">
                            <span class="label label-primary">Giới Tính:</span>
                            <dx:ASPxLabel ID="lbl_gioitinh"  ClientInstanceName="lbl_gioitinh" runat="server" Text='<%# Eval("gioitinh")%>' Font-Size="Small">
                            <ClientSideEvents Init="changeTextGT" /> 
                            </dx:ASPxLabel>
                        </div>                       
                        </td>
                        <td class="col-lg-2">
                        <div class="form-group">
                            <span class="label label-primary">Số Điện Thoại:</span>
                             <%# Eval("sdt")%>
                        </div>
                        <div class="form-group">
                            <span class="label label-primary">Địa Chỉ:</span>
                             <%# Eval("diachi")%>
                        </div>                            
                        </td>
                            <td class="col-lg-6 col-sm-3">
                            <dx:ASPxImage ID="img_docgia" runat="server" ShowLoadingImage="true" EmptyImage-Url="~/img/noImgDocGia.png" Height="160px" Width="250px" ImageUrl='<%#Eval("hinh")%>' >
                            </dx:ASPxImage>
                        </td>
                    </tr>                    
                </tbody>
            </table>
            </ItemTemplate> 
        </asp:DataList>
            <div>
                <h2 style="border-bottom:3px solid gray" class="text-info"> Thông Tin Trả</h2>
            </div>
            <table width="100%">
                <tbody class="col-lg-12">                
                    <tr>                                                            
                        <td class="col-lg-6">
                            <div class="form-group">
                                <span class="label label-danger">Nhân Viên Nhận Trả:</span>
                                 <dx:ASPxLabel ID="lb_nv" runat="server">
                                 </dx:ASPxLabel>
                            </div>                                      
                        </td>
                        <td class="col-lg-3">                         
                            <div class="form-group">
                                <span class="label label-danger">Ngày Trả:</span>
                                <%= Request.QueryString("ngaytra")%>
                            </div>                       
                        </td>                       
                    </tr>
                </tbody>
            </table>
            <div class="col-lg-12">
                <dx:ASPxPageControl ID="pageControl" runat="server" ActiveTabIndex="0" Width="100%">
                <TabPages>
                    <dx:TabPage Text="Thông Tin">
                        <ContentCollection>
                            <dx:ContentControl>
                                 <dx:ASPxGridView ID="grid_return" runat="server" 
                Width="100%" AutoGenerateColumns="False" KeyFieldName="id_sach"  EnableCallBacks="true">
                <Columns>
                    <dx:GridViewDataColumn FieldName="id_sach" VisibleIndex="0" Caption="Mã Sách" CellStyle-HorizontalAlign="Center"  >
                        
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn FieldName="tensach" VisibleIndex="1" Caption="Tên Sách"  CellStyle-HorizontalAlign="Center" >
                        
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn FieldName="tennv" VisibleIndex="2" Caption="Nhân Viên Cho Mượn"  CellStyle-HorizontalAlign="Center" >
                        
                       <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"   />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                      <dx:GridViewDataColumn FieldName="ngaymuon" VisibleIndex="3" Caption="Ngày Mượn"  CellStyle-HorizontalAlign="Center">
                       
                        <HeaderStyle BackColor="LightSkyBlue" Font-Bold="True" /><HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn FieldName="ngaytra" VisibleIndex="4" Caption="Ngày Hẹn Trả"  CellStyle-HorizontalAlign="Center">
                       
                        <HeaderStyle BackColor="LightSkyBlue" Font-Bold="True" /><HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>

                        <dx:GridViewDataColumn FieldName="id_mathe"  VisibleIndex="5" Caption="Số Ngày Quá Hạn"  CellStyle-HorizontalAlign="Center">
                       
                        <HeaderStyle BackColor="LightSkyBlue" Font-Bold="True" /><HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>  
                    <dx:GridViewDataImageColumn FieldName="hinh" VisibleIndex="6" Caption="Hình" CellStyle-HorizontalAlign="Center">
                         <HeaderStyle BackColor="LightSkyBlue" Font-Bold="True" /><HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

                        <CellStyle HorizontalAlign="Center"></CellStyle>
                     <PropertiesImage ImageWidth="125px" ImageHeight="100px" EmptyImage-Height="100px" EmptyImage-Width="125px">
                        <EmptyImage Url="../img/no-thumbnail.png"></EmptyImage> 
                     </PropertiesImage>    
                    </dx:GridViewDataImageColumn>      
                </Columns>
    
     
                <SettingsBehavior ColumnResizeMode="NextColumn"/>
                
                <Settings ColumnMinWidth="100" />      
                </dx:ASPxGridView>
                            </dx:ContentControl>
                        </ContentCollection> 
                    </dx:TabPage>
                    <dx:TabPage Text="Ghi Chú">
                        <ContentCollection>
                            <dx:ContentControl>
                                <dx:ASPxPanel ID="panelMP" runat="server" Width="100%">
                                    <ExpandedPanelTemplate>                           
                                    </ExpandedPanelTemplate> 
                                </dx:ASPxPanel>
                            </dx:ContentControl> 
                        </ContentCollection>
                    </dx:TabPage>
                </TabPages>
                </dx:ASPxPageControl>
               
            </div>
            <table width="100%">
          <tbody class="col-lg-12">
          <tr>
          <td class="col-lg-2">
                 <div class="row" style="padding-top:20px;padding-bottom:5px;float:right">                             
                                    <dx:ASPxButton ID="btn_dongy" runat="server"  CssClass="btn btn-primary" Text="Xác Nhận" AutoPostBack="true" >
                                    </dx:ASPxButton>                                                               
                                                                                       
                                    <dx:ASPxButton ID="btn_quaylai" runat="server"  CssClass="btn btn-danger" Text="Quay Lại" >
                                    <ClientSideEvents Click="HidePopup" />
                                    </dx:ASPxButton> 
                     <dx:ASPxLoadingPanel ID="lp_dongy" runat="server">
                     
                     </dx:ASPxLoadingPanel>                                                                                              
                             </div>                 
          </td>
          </tr>
          </tbody>
          </table>  
        
    </div>
    </div>
    </form>
</body>
</html>
